package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IUserMapper extends BaseMapper<UserBean> {
    @Select("select * from t_user where u_name like \"%\"#{name}\"%\"")
    @ResultMap("userMap")
    public List<UserBean> searchName(String name);
}
